package org.jianfa.homework.code.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "springcloud-service-mail")
public interface MailClient {

    @PostMapping("/mail/sendEmail")
    boolean  sendEmail(@RequestParam("email") String email,
                       @RequestParam("code") String code);
}
